Hawzah News Agency – Q: A person woke up before the morning adhān but did not realize that he was junub and went back to sleep. Later, he woke up during the morning adhān and realized that he has been junub. What is the ruling concerning his fast?
A: Before the morning adhān, if he did not realize that he was junub, then his fast is valid.
Source: https://www.leader.ir/en/book/32/Practical-Laws-of-Islam